home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / fonts / FS.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  4KB  |  133 lines

  1. /* $Xorg: FS.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */
  2.  
  3. /*
  4.  * Copyright 1990, 1991 Network Computing Devices;
  5.  * Portions Copyright 1987 by Digital Equipment Corporation 
  6.  *
  7.  * Permission to use, copy, modify, distribute, and sell this software and
  8.  * its documentation for any purpose is hereby granted without fee, provided
  9.  * that the above copyright notice appear in all copies and that both that
  10.  * copyright notice and this permission notice appear in supporting
  11.  * documentation, and that the names of Network Computing Devices or Digital
  12.  * not be used in advertising or publicity pertaining to distribution
  13.  * of the software without specific, written prior permission.
  14.  * Network Computing Devices and Digital make no representations 
  15.  * about the suitability of this software for any purpose.  It is provided 
  16.  * "as is" without express or implied warranty.
  17.  *
  18.  * NETWORK COMPUTING DEVICES AND DIGITAL DISCLAIM ALL WARRANTIES WITH
  19.  * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
  20.  * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES
  21.  * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  22.  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  23.  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  24.  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  25.  * THIS SOFTWARE.
  26.  */
  27.  
  28. /*
  29.  
  30. Portions Copyright 1987, 1994, 1998  The Open Group
  31.  
  32. Permission to use, copy, modify, distribute, and sell this software and its
  33. documentation for any purpose is hereby granted without fee, provided that
  34. the above copyright notice appear in all copies and that both that
  35. copyright notice and this permission notice appear in supporting
  36. documentation.
  37.  
  38. The above copyright notice and this permission notice shall be included in
  39. all copies or substantial portions of the Software.
  40.  
  41. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  42. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  43. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  44. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  45. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  46. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  47.  
  48. Except as contained in this notice, the name of The Open Group shall not be
  49. used in advertising or otherwise to promote the sale, use or other dealings
  50. in this Software without prior written authorization from The Open Group.
  51.  
  52. */
  53. /* $XFree86: xc/include/fonts/FS.h,v 1.9 2003/07/09 15:27:28 tsi Exp $ */
  54.  
  55. #ifndef _FS_H_
  56. #define    _FS_H_
  57.  
  58. #include <X11/Xdefs.h>
  59. #include <X11/fonts/fsmasks.h>
  60.  
  61. #define    FS_PROTOCOL        2
  62. #define    FS_PROTOCOL_MINOR    0
  63.  
  64. #ifndef X_PROTOCOL
  65. /* protocol familes */
  66. #define FamilyInternet          0
  67. #define FamilyDECnet            1
  68. #define FamilyChaos             2
  69. #define FamilyInternet6         6
  70.  
  71.  
  72. typedef unsigned int    FSDrawDirection;
  73. #endif
  74.  
  75. #ifndef None
  76. #define    None        0L
  77. #endif
  78.  
  79. #define    LeftToRightDrawDirection    0
  80. #define    RightToLeftDrawDirection    1
  81.  
  82. /* font info flags */
  83. #define    FontInfoAllCharsExist        (1L << 0)
  84. #define    FontInfoInkInside        (1L << 1)
  85. #define    FontInfoHorizontalOverlap    (1L << 2)
  86.  
  87. /* auth status flags */
  88. #define    AuthSuccess    0
  89. #define    AuthContinue    1
  90. #define    AuthBusy    2
  91. #define    AuthDenied    3
  92.  
  93. /* property types */
  94. #define    PropTypeString        0
  95. #define    PropTypeUnsigned    1
  96. #define    PropTypeSigned        2
  97.  
  98. #ifndef LSBFirst
  99. /* byte order */
  100. #define LSBFirst                0
  101. #define MSBFirst                1
  102. #endif
  103.  
  104. /* event masks */
  105. #define    CatalogueChangeNotifyMask    (1L << 0)
  106. #define    FontChangeNotifyMask        (1L << 1)
  107.  
  108. /* errors */
  109. #define    FSSuccess        -1
  110. #define    FSBadRequest        0
  111. #define    FSBadFormat        1
  112. #define    FSBadFont        2
  113. #define    FSBadRange        3
  114. #define    FSBadEventMask        4
  115. #define    FSBadAccessContext    5
  116. #define    FSBadIDChoice        6
  117. #define    FSBadName        7
  118. #define    FSBadResolution        8
  119. #define    FSBadAlloc        9
  120. #define    FSBadLength        10
  121. #define    FSBadImplementation    11
  122.  
  123. #define    FirstExtensionError    128
  124. #define    LastExtensionError    255
  125.  
  126. /* events */
  127. #define    KeepAlive        0
  128. #define    CatalogueChangeNotify    1
  129. #define    FontChangeNotify    2
  130. #define FSLASTEvent        3
  131.  
  132. #endif                /* _FS_H_ */
  133.